const mongoose = require('mongoose');

const titleSchema = new mongoose.Schema({
  titleName: { type: String, required: true, unique: true },
  titleType: { type: String, required: true },
  isUsed: { type: Boolean, default: false },
  timestamp: { type: Date, default: Date.now },
});

module.exports = mongoose.model('Title', titleSchema);
